<?php if(!isset($isModal)) $isModal = TRUE; ?>
<div <?php if($isModal) echo "class='modal-form'"; ?> id="email_everyone">
    <?php 
    $attributes = array('id' => 'mail_form');
    echo form_open('user/sendMailEveryone', $attributes); ?>
    <table width="100%">
    	<tr>
        	<td class="menuActual">Config > Users > E-mail Everyone</td>
        </tr>
        <tr>
        	<td>
            	<table>
                    <tr>
                        <td class="descripcionForm"><?php echo form_label("Message:"); ?></td>
                        <td class="descripcionForm"><?php 
                            $attributes = array('id' => 'message', 'rows' => '10','name' => 'message', 'cols' => '50',
                                                'value' => set_value('message'));
                            echo form_textarea($attributes); ?>
                        </td>
                    </tr>
                    <tr>
                        <td class="descripcionForm" colspan="2"><?php echo validation_errors(); ?></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="footer">
                <input onclick="mail_form.submit();" value="Send" type="button" class="footer_button" />
            </td>            
        </tr>    
    </table>
    <?php echo form_close();?>
</div>